traffic-type mpls
Filters Multiprotocol Label Switching
Segment Routing (MPLS-SR) packets.
Syntax
traffic-type mpls
outer
header1
[
label value
|
any
]
traffic-type mpls
outer
log
traffic-type mpls
outer
log_drop
traffic-type mpls
outer
mirror
NAME
no
traffic-type mpls
outer [ header1
|
log
|
log_drop
|
mirror
]
Parameters
- mpls
outer
- Specifies that the MPLS-SR is the outer
encapsulation type to be matched to classify packet. MPLS can be the outer
encapsulation or the only encapsulation.
- header1
- Configures the MPLS Bottom of
Stack header (inner-most header) values to be matched.
- label1
- Specifies the label value of
the MPLS Bottom of Stack to be matched. Valid range is 0 through
1048575.
- any
- Matches all values of the specified parameter.
- log
- Captures the packet matching traffic
type.
- log_drop
- Captures the packet matching traffic type
and drop.
- mirror
- Configures the mirror.
- NAME
- Specifies the name of the configured mirror. Supports 64 characters.
Modes
Ingress-group config
mode
Usage Guidelines
This command is available only to users with the admin
role.
This command classifies MPLS-SR packets by removing all MPLS headers and sending payload to
the tools. You can use the ingress or egress ACLs to match packets based on the
payload fields.
The packets can also be classified based on the Bottom of Stack (inner-most header) MPLS
header values.
Removal of MPLS headers is supported for maximum depth of four MPLS labels.
Validations for the command are as follows:
- A maximum of four MPLS labels are supported.
- The configured MPLS header values must be removed before you configure a new
header value.
- When MPLS header values are not set, all values in innermost header are
classified.
- If the same command is run more
than once, the second and subsequent instances are ignored
and no error is reported.
Examples
The following example enables classification of packets based on MPLS
headers.
device(config-ingress-group)# traffic-type mpls outer header1 12345 3 250
device(config-ingress-group)# do show ingress-group all
Number of ingress-groups: 1
Name : igg1
Route-Map : rmap1
Description : -
Interfaces : ethernet 0/1
Outer Tunnel Config :
Traffic-Type : MPLS
Header1 (Bottom of Stack header):
label : 12345
Traffic Class : 3
Time to Live : 250
Mirror : none